package com.simple.piger.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.simple.piger.dto.resp.SysUserListRespDto;
import com.simple.piger.entity.CmsSysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * CMS【系统模块】用户表 Mapper 接口
 * @Author  donghj
 * @Date    2017/11/20 19:37
 */
@Repository
public interface CmsSysUserMapper extends BaseMapper<CmsSysUser> {
    /**
     * 获取帐号配置列表页的总条数
     * @Author  donghj
     * @Date    2018/6/13 10:03
     */
    int selUserListCount(@Param("roleId") Integer roleId,
                         @Param("locked") Boolean locked);

    /**
     * 获取帐号配置列表页的分页信息
     * @Author  donghj
     * @Date    2018/6/13 10:03
     */
    List<SysUserListRespDto> selUserList(@Param("roleId") Integer roleId,
                                         @Param("locked") Boolean locked,
                                         @Param("start") Integer start,
                                         @Param("limit") Integer limit);
}